<template>
  <footer class="app_footer">
    <!-- 联系我们 -->
    <div class="contact">
      <div class="container">
        <dl>
          <dt>客户服务</dt>
          <dd><i class=""></i> 在线客服</dd>
          <dd><i class=""></i> 问题反馈</dd>
        </dl>
        <dl>
          <dt>关注我们</dt>
          <dd><i class=""></i> 公众号</dd>
          <dd><i class=""></i> 微博</dd>
        </dl>
        <dl>
          <dt>下载APP</dt>
          <!-- 替换图片路径 -->
          <dd class="qrcode"><img  class="img" src="@/assets/images/ma.png" alt="二维码" /></dd>
          <dd class="download">
            <span>扫描二维码</span>
            <span>联系作者</span>
            <!-- <a href="javascript:;">下载页面</a> -->
          </dd>
        </dl>
        <dl>
          <dt>服务热线</dt>
          <dd class="hotline">400-100-5678 <small></small></dd>
          <dd class="time">周一至周日 9:00-24:00</dd>
        </dl>
      </div>
    </div>
    <!-- 其它 -->
    <div class="extra">
      <div class="container">
        <div class="slogan">
          <a href="javascript:;">
            <span>预约维修服务</span>
          </a>
          <a href="javascript:;">
            <span>15天免费退货</span>
          </a>
          <a href="javascript:;">
            <span>质量保证</span>
          </a>
        </div>
        <!-- 版权信息 -->
        <div class="copyright">
          <p>© 2024 软件工程2班宋浩旋 保留所有权利</p>
          <p>
            <a href="javascript:;">隐私政策</a>
            <a href="javascript:;">使用条款</a>
            <a href="javascript:;">联系我们</a>
          </p>
        </div>
      </div>
    </div>
  </footer>
</template>

<style scoped lang="scss">
.app_footer {
  overflow: hidden;
  background-color: #f5f5f5;
  padding-top: 20px;

  .contact {
    background: #fff;

    .container {
      padding: 60px 0 40px 25px;
      display: flex;
      justify-content: space-between;
    }

    dl {
      text-align: center;
      padding: 0 20px;
      border-right: 1px solid #f2f2f2;
      color: #999;
      flex: 1;

      &:first-child {
        padding-left: 0;
      }

      &:last-child {
        border-right: none;
        padding-right: 0;
      }
    }

    dt {
      line-height: 1;
      font-size: 18px;
      margin-bottom: 20px;
    }

    dd {
      margin: 10px 0;
      display: flex;
      align-items: center;
      justify-content: center;

      .iconfont {
        font-size: 24px;
        margin-right: 10px;
        color: #666;
      }

      &:hover .iconfont {
        color: #ff6700;
      }
    }

    .qrcode {
      width: 92px;
      height: 92px;
      padding: 7px;
      border: 1px solid #ededed;
      margin: 0 auto;
    }
    .img{
      width: 100%;
      height: 100%;
    }

    .download {
      font-size: 14px;

      span {
        display: block;
      }

      a {
        display: inline-block;
        line-height: 1;
        padding: 5px 15px;
        margin-top: 10px;
        color: #fff;
        border-radius: 2px;
        background-color: #ff6700;
      }
    }

    .hotline {
      font-size: 22px;
      color: #666;
      small {
        display: block;
        font-size: 14px;
        color: #999;
      }
    }
  }

  .extra {
    background-color: #333;
    color: #fff;

    .container {
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .slogan {
      display: flex;
      justify-content: space-around;
      width: 100%;
      max-width: 1200px;
      height: 100px;
      padding: 20px 0;
      border-bottom: 5px solid #444;

      a {
        display: flex;
        align-items: center;
        color: #fff;
        font-size: 16px;
        text-decoration: none;

        i {
          font-size: 24px;
          margin-right: 10px;
        }

        &:hover {
          color: #ff6700;
        }
      }
    }

    .copyright {
      text-align: center;
      font-size: 14px;
      padding: 20px 0;

      p {
        margin: 5px 0;
      }

      a {
        color: #999;
        text-decoration: none;
        margin: 0 10px;

        &:hover {
          color: #ff6700;
        }

        &:not(:last-child) {
          border-right: 1px solid #999;
          padding-right: 10px;
        }
      }
    }
  }
}
</style>
